About 846 letters

About 4 minutes

#chr

Description: Converts an integer encoding of a single Unicode character to a string. See also the ord function.

def chr(x: int):
    '''
    Converts an integer encoding of a single Unicode character to a string.
    The valid range for the argument is from 0 to 0x10FFFF. A ValueError will be raised if the value is out of range.

    :param x: The integer encoding of a single Unicode character
    :return: The string of the single Unicode character
    '''

Example:

print('The character for encoding 65 is', chr(65))
print('The character for encoding 30002 is', chr(30002))

>>> Establishing WebAssembly Runtime.

>>> Standby.

Powered by Shift.

Updated: 6/9/2025

Author: PlanC

Created: 6/9/2025